package com.roamer.audition.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 分页查询
 *
 * @author roamer
 * @version V1.0
 * @date 2019/9/2 1:23 下午
 */
@ApiModel(value = "分页查询Query")
@Data
public abstract class PageQuery implements Serializable {

    private static final long serialVersionUID = 2117132504621363423L;

    @ApiModelProperty(value = "当前页码", notes = "从0开始", allowableValues = "range[0, infinity]")
    protected int page = 0;

    @ApiModelProperty(value = "分页大小", notes = "每页大小")
    protected int size = 10;
}
